<template>
  <div class="weekend">
    <div class="w-tittle">周末去哪</div>
    <div class="w-box" v-for="item of list" :key="item.id">
      <div class="img">
        <img class="w-img" :src="item.imgUrl" alt />
      </div>
      <div class="w-text">
        <h1 class="w-name">{{item.title}} </h1>
        <h2 class="wb-tittle">{{item.desc}} </h2>

      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeWeekend",
  props: {
    list:Array
  }
};
</script>

<style scoped>
.w-tittle {
  width: 100%;
  background: #ccc;
  font-size: 0.15rem;
  color: #fff;
  padding-left: 0.1rem;
  box-sizing: border-box;
  padding-bottom: .05rem;
}
.w-box{
  padding: .1rem;
}
.w-img{
  width: 100%;
}
.w-name{
  padding-top: .1rem;
  font-size: .2rem;
}
.wb-tittle{
  padding-top: .05rem;
  font-size: .15rem;
}
</style>